PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / compressAndClose Method
In This Topic
    compressAndClose Method
    In This Topic
    Compresses the graphic content and closes the graphics surface.
    Call this method to compress the graphic content and reduce memory usage. If this method is not called, the graphic content is stored uncompressed in the PDF file. After calling this method no more drawing is allowed on the graphics.
    Syntax
    public void compressAndClose()
    See Also